.class public Lcom/esfile/screen/recorder/picture/newpicker/data/loader/ImageLoader;
.super Landroidx/loader/content/CursorLoader;
.source "ImageLoader.java"

# interfaces
.implements Lcom/esfile/screen/recorder/picture/newpicker/data/loader/a;


# static fields
.field private static final b:[Ljava/lang/String;


# instance fields
.field private a:I


# direct methods
.method static constructor <clinit>()V
    .locals 3

    const/16 v0, 0x8

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "_id"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "_data"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "_size"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "title"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "date_added"

    aput-object v2, v0, v1

    const/4 v1, 0x5

    const-string v2, "mime_type"

    aput-object v2, v0, v1

    const/4 v1, 0x6

    const-string v2, "width"

    aput-object v2, v0, v1

    const/4 v1, 0x7

    const-string v2, "height"

    aput-object v2, v0, v1

    .line 1
    sput-object v0, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/ImageLoader;->b:[Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 0
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    invoke-direct {p0, p1}, Landroidx/loader/content/CursorLoader;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method private b(Landroid/os/Bundle;)V
    .locals 2

    if-nez p1, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    const-string v1, "bundle_type"

    .line 1
    invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/ImageLoader;->a:I

    return-void
.end method


# virtual methods
.method public a(Landroid/database/Cursor;)Ljava/util/ArrayList;
    .locals 16
    .param p1    # Landroid/database/Cursor;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/database/Cursor;",
            ")",
            "Ljava/util/ArrayList<",
            "Les/qa;",
            ">;"
        }
    .end annotation

    move-object/from16 v0, p1

    if-nez v0, :cond_0

    const/4 v0, 0x0

    return-object v0

    .line 7
    :cond_0
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 8
    :goto_0
    invoke-interface/range {p1 .. p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v2

    if-eqz v2, :cond_5

    const-wide/16 v2, 0x0

    .line 9
    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    const-string v5, "_id"

    invoke-static {v0, v5, v4}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/b;->a(Landroid/database/Cursor;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    const-string v6, ""

    const-string v7, "_data"

    .line 10
    invoke-static {v0, v7, v6}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/b;->a(Landroid/database/Cursor;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    .line 11
    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v8

    const-string v9, "_size"

    invoke-static {v0, v9, v8}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/b;->a(Landroid/database/Cursor;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/Long;

    invoke-virtual {v8}, Ljava/lang/Long;->longValue()J

    move-result-wide v8

    const-string v10, "title"

    .line 12
    invoke-static {v0, v10, v6}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/b;->a(Landroid/database/Cursor;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/String;

    .line 13
    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    const-string v3, "date_added"

    invoke-static {v0, v3, v2}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/b;->a(Landroid/database/Cursor;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    const-string v11, "mime_type"

    .line 14
    invoke-static {v0, v11, v6}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/b;->a(Landroid/database/Cursor;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/String;

    const/4 v12, 0x0

    .line 15
    invoke-static {v12}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v13

    const-string v14, "width"

    invoke-static {v0, v14, v13}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/b;->a(Landroid/database/Cursor;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Ljava/lang/Integer;

    invoke-virtual {v13}, Ljava/lang/Integer;->intValue()I

    move-result v13

    .line 16
    invoke-static {v12}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v14

    const-string v15, "height"

    invoke-static {v0, v15, v14}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/b;->a(Landroid/database/Cursor;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Ljava/lang/Integer;

    invoke-virtual {v14}, Ljava/lang/Integer;->intValue()I

    move-result v14

    .line 17
    new-instance v15, Les/qa;

    invoke-direct {v15}, Les/qa;-><init>()V

    .line 18
    invoke-virtual {v15, v4, v5}, Les/qa;->c(J)V

    .line 19
    invoke-virtual {v15, v7}, Les/qa;->c(Ljava/lang/String;)V

    .line 20
    invoke-virtual {v15, v8, v9}, Les/qa;->d(J)V

    .line 21
    invoke-virtual {v15, v10}, Les/qa;->d(Ljava/lang/String;)V

    .line 22
    invoke-virtual {v15, v11}, Les/qa;->b(Ljava/lang/String;)V

    .line 23
    invoke-virtual {v15, v2, v3}, Les/qa;->a(J)V

    .line 24
    invoke-virtual {v15, v13}, Les/qa;->e(I)V

    .line 25
    invoke-virtual {v15, v14}, Les/qa;->d(I)V

    move-object/from16 v2, p0

    .line 26
    iget v3, v2, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/ImageLoader;->a:I

    invoke-virtual {v15, v3}, Les/qa;->a(I)V

    .line 27
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v7}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v3

    if-nez v3, :cond_1

    goto :goto_1

    .line 28
    :cond_1
    invoke-virtual {v3}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v6

    .line 29
    :goto_1
    invoke-virtual {v15, v6}, Les/qa;->a(Ljava/lang/String;)V

    const-string v3, "RecordMasterScreenshots"

    .line 30
    invoke-static {v6, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_2

    goto :goto_2

    :cond_2
    const-string v3, "RecordMasterEdit"

    .line 31
    invoke-static {v6, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_3

    const/4 v12, 0x1

    goto :goto_2

    :cond_3
    const-string v3, "Screenshots"

    .line 32
    invoke-static {v6, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_4

    const/4 v12, 0x2

    goto :goto_2

    :cond_4
    const/4 v12, 0x4

    .line 33
    :goto_2
    invoke-virtual {v15, v12}, Les/qa;->c(I)V

    .line 34
    invoke-virtual {v1, v15}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    :cond_5
    move-object/from16 v2, p0

    return-object v1
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/ImageLoader;->b(Landroid/os/Bundle;)V

    .line 2
    sget-object p1, Landroid/provider/MediaStore$Images$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    invoke-virtual {p0, p1}, Landroidx/loader/content/CursorLoader;->setUri(Landroid/net/Uri;)V

    .line 3
    sget-object p1, Lcom/esfile/screen/recorder/picture/newpicker/data/loader/ImageLoader;->b:[Ljava/lang/String;

    invoke-virtual {p0, p1}, Landroidx/loader/content/CursorLoader;->setProjection([Ljava/lang/String;)V

    const-string p1, "mime_type=? or mime_type=? or mime_type=?"

    .line 4
    invoke-virtual {p0, p1}, Landroidx/loader/content/CursorLoader;->setSelection(Ljava/lang/String;)V

    const/4 p1, 0x3

    new-array p1, p1, [Ljava/lang/String;

    const/4 v0, 0x0

    const-string v1, "image/jpeg"

    aput-object v1, p1, v0

    const/4 v0, 0x1

    const-string v1, "image/jpg"

    aput-object v1, p1, v0

    const/4 v0, 0x2

    const-string v1, "image/png"

    aput-object v1, p1, v0

    .line 5
    invoke-virtual {p0, p1}, Landroidx/loader/content/CursorLoader;->setSelectionArgs([Ljava/lang/String;)V

    const-string p1, "date_added DESC"

    .line 6
    invoke-virtual {p0, p1}, Landroidx/loader/content/CursorLoader;->setSortOrder(Ljava/lang/String;)V

    return-void
.end method

.method public i()Landroidx/loader/content/CursorLoader;
    .locals 0

    return-object p0
.end method
